<template>
  <h1>文本指令</h1>
  {{ info }}
  {{ info + '晚上吃什么? '}}
  <hr>
  <button @click="f">点我</button>
  <hr>
  <p v-text="aaa"></p>
  <p v-html="aaa"></p>
</template>

<script setup>
import {ref} from "vue";

const info = ref('我是info');
const aaa = ref('我是aaa');
const f = () => {
  console.log('我是f函数');
  console.log(aaa.value);
  aaa.value = '我是<mark>新</mark>数据,大家<b>早上好!</b>';
}
</script>

<style scoped>

</style>